package com.abing.starry.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author CaptainBing
 * @Date 2024/9/19 18:17
 * @Description
 */
@Data
@Configuration
@ConditionalOnProperty(prefix = "starry.captcha",name = "enabled", havingValue = "true", matchIfMissing = true)
@ConfigurationProperties(prefix = "starry.captcha")
public class CaptchaProperties {

    /**
     * 验证码过期时间
     */
    private Integer ttl;

    /**
     *
     */
    private Integer repeatSubmit;


}
